// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import Mint from 'mint-ui';
import store from './store'
import ElementUI from 'element-ui'
import 'mint-ui/lib/style.css' //ui样式
import 'element-ui/lib/theme-chalk/index.css';
import '../commpent/css/common.css';
import '../commpent/css/font/iconfont.css'
import "babel-polyfill";
import promise from 'es6-promise';
import touch from 'vue-directive-touch';
// 引入echarts
import echarts from 'echarts'
Vue.prototype.$echarts = echarts 
Vue.use(touch);
// 兼容 Promise
promise.polyfill();
// import Swiper from 'swiper';
import 'swiper/dist/css/swiper.css';
Vue.use(ElementUI)
// Vue.use(Swiper)
Vue.use(Mint);
// 设置rem
import rest from '../commpent/js/rest'
Vue.prototype.$rest = rest
Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  store,
  router,
  components: { App },
  template: '<App/>'
})
